package com.lzx.mq.feign;

import com.lzx.mq.result.R;
import com.lzx.mq.vo.NicknameVO;
import com.lzx.mq.vo.OssVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 程序员星星
 * @date 2023/2/5
 * @Description
 */
@Component
@FeignClient("five-cube-article")
public interface ArticleClient {

    //修改用户昵称(文章二级评论)
    @PutMapping("/article/secondComments/web/updateNicknameToSecondComments")
    String updateNicknameToSecondComments(@RequestBody NicknameVO nicknameVO);

    //修改用户昵称(文章一级评论)
    @PutMapping("/article/comments/web/updateNicknameToComments")
    String updateNicknameToComments(@RequestBody NicknameVO nicknameVO);

    //修改用户头像(文章二级评论)
    @PutMapping("/article/secondComments/web/updateAvatarToSecondComments")
    String updateAvatarToSecondComments(@RequestBody OssVO ossVO);

    //修改用户头像(文章一级评论)
    @PutMapping("/article/comments/web/updateAvatarToComments")
    String updateAvatarToComments(@RequestBody OssVO ossVO);
}
